package com.zit.java.pojo;

public class Test {

    static class A{
        void method(){
            System.out.println("its super method");
        }
    }
    static class B extends A{
        void method(){
            System.out.println("its son method");
        }
    }

    public static void main(String[] args) {
        A b = (A) new B();
       b.method();
    }


}
